import { createStore } from "vuex";
import login from "./login/login";
import system from "./system/system";
import Books from "./books/books";
import dashboread from "./analiysis/dashboread/dashboread";
export default createStore({
  state: {
    currenPage: 1,
  },
  mutations: {
    changepageInfo(state, payload) {
      state.currenPage = payload;
    },
    refresh(state) {
      state.currenPage = 1;
    },
  },
  actions: {},
  modules: {
    login,
    system,
    Books,
    dashboread,
  },
});
